<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
<h3>hello shiro <a th:href="@{logout}">[注销]</a> </h3>


<ul>

    <li><a th:href="@{user/list}"  shiro:hasRole="管理员">查全部</a></li>
    <li><a th:href="@{user/add}" shiro:hasPermission="user:add">新增用户</a></li>
    <li><a th:href="@{user/update}">修改用户信息</a></li>
    <li><a th:href="@{user/view/321}" shiro:hasPermission="L0501">按id查看单个--[非管理员有]</a></li>
</ul>

</body>
</html>